/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Gao zhao xu
 * Date: 2023-06-07
 * Time: 15:03
 */
abstract class Shape{
    public abstract void draw();
}
public class test {
    public static void main(String[] args) {
        int a = 10;
        new Shape(){
            @Override
            public void draw() {
                System.out.println("矩形 " + a);
            }
        }.draw();
    }
}
